<template>
  <div class="jiayou-layout">
    <snackbar style-color="#4A4A4A"
              back-color="#ffffff"
              status-color="#ffffff"
              :fixed="true"/>
    <div class="menu-layout">
      <div class="menu-item" @click="openNewUrl('/jiayou/jiayou')">
        <img class="menu-image" src="@/assets/image/icon_jiayou1.png">
        <span class="menu-text">加油</span>
      </div>
      <div class="menu-item" @click="openNewUrl('/jiayou/config')">
        <img class="menu-image" src="@/assets/image/icon_jiayou2.png">
        <span class="menu-text">设置油价</span>
      </div>
      <div class="menu-item" @click="openNewUrl('/jiayou/record')">
        <img class="menu-image" src="@/assets/image/icon_jiayou3.png">
        <span class="menu-text">数据统计</span>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'index'
  }
</script>

<style lang="scss" scoped>
  .jiayou-layout {
    display: flex;
    flex-direction: column;
    width: 100vw;

    .menu-layout {
      display: flex;
      flex-direction: row;
      width: 90%;
      padding-left: 5%;
      padding-right: 5%;
      justify-content: space-between;
      margin-top: 20px;

      .menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 5px;
        margin: 5px;

        .menu-image {
          width: 30px;
          height: 30px;
        }

        .menu-text {
          font-size: 15px;
          font-family: PingFangSC-Semibold, PingFang SC;
          color: #9B9B9B;
          margin-top: 14px;
        }
      }
    }
  }
</style>
